package com.liu.controller;

import com.liu.common.api.ApiResult;
import com.liu.model.entity.BmsPermission;
import com.liu.model.entity.BmsTip;
import com.liu.service.IBmsPermissionService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author liumiao
 * @create 2021-10-31-21:37
 */
@RestController
@RequestMapping("/permission")
public class BmsPermissionController {
    @Resource
    private IBmsPermissionService iBmsPermissionService;

    @GetMapping("/perm")
    public ApiResult<BmsPermission> getPermission() {
        BmsPermission tip = (BmsPermission) iBmsPermissionService.list(null);
        return ApiResult.success();
    }

}
